<h3>过滤器钩子 Filter</h3>
<p>
    过滤器的是 baigo CMS 用于修改即将要保存或者发送出去的数据的一种钩子。任何的插件都可以通过过滤器钩子来指示系统在遇到某些环节或者事件的时候，就执行指定的 PHP 函数去修改特定的数据。下面列表中的过滤器的回传参数即过滤后的数据返回给系统，这些数据将直接写入数据库或在输出到浏览器前被修改。
</p>

<div>&nbsp;</div>
<div class="text-right">
    <a href="#top">
        <span class="oi oi-chevron-top"></span>
        top
    </a>
</div>
<hr>
<div>&nbsp;</div>

    <h4>前台过滤器</h4>
    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>返回</th>
                    <th>回传参数</th>
                    <th>说明</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>filter_pub_article_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td>显示文章时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_call_cate</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td>显示调用栏目列表时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_call_spec</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec" target="_blank">专题显示</a></td>
                    <td>显示调用专题列表时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_call_link</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=common#link" target="_blank">友情链接</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=common#link" target="_blank">友情链接</a></td>
                    <td>显示调用友情链接列表时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_call_tag</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=tag" target="_blank">TAG 显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=tag" target="_blank">TAG 显示</a></td>
                    <td>显示调用 TAG 列表、排行时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_call_article</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td>显示调用文章列表、排行时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_cate_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td>显示栏目时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_spec_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td>显示专题时触发</td>
                </tr>
                <tr>
                    <td>filter_pub_spec_list</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td>显示专题列表时触发</td>
                </tr>
            </tbody>
        </table>
    </div>


<div>&nbsp;</div>
<div class="text-right">
    <a href="#top">
        <span class="oi oi-chevron-top"></span>
        top
    </a>
</div>
<hr>
<div>&nbsp;</div>

    <h4>管理后台过滤器</h4>
    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>返回</th>
                    <th>回传参数</th>
                    <th>说明</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>filter_console_article_add</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=articleRow" target="_blank">文章数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=articleRow" target="_blank">文章数组</a></td>
                    <td>添加文章时触发</td>
                </tr>
                <tr>
                    <td>filter_console_article_edit</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=articleRow" target="_blank">文章数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=articleRow" target="_blank">文章数组</a></td>
                    <td>编辑文章时触发</td>
                </tr>
                <tr>
                    <td>filter_console_cate_add</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=cateRow" target="_blank">栏目数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=cateRow" target="_blank">栏目数组</a></td>
                    <td>添加栏目时触发</td>
                </tr>
                <tr>
                    <td>filter_console_cate_edit</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=cateRow" target="_blank">栏目数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=cateRow" target="_blank">栏目数组</a></td>
                    <td>编辑栏目时触发</td>
                </tr>
                <tr>
                    <td>filter_console_link_add</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=linkRow" target="_blank">链接数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=linkRow" target="_blank">链接数组</a></td>
                    <td>添加链接时触发</td>
                </tr>
                <tr>
                    <td>filter_console_link_edit</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=linkRow" target="_blank">链接数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=linkRow" target="_blank">链接数组</a></td>
                    <td>编辑链接时触发</td>
                </tr>
                <tr>
                    <td>filter_console_spec_add</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=specRow" target="_blank">链接数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=specRow" target="_blank">链接数组</a></td>
                    <td>添加专题时触发</td>
                </tr>
                <tr>
                    <td>filter_console_spec_edit</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=specRow" target="_blank">专题数组</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=plugin&a=specRow" target="_blank">专题数组</a></td>
                    <td>编辑专题时触发</td>
                </tr>
            </tbody>
        </table>
    </div>

<div>&nbsp;</div>
<div class="text-right">
    <a href="#top">
        <span class="oi oi-chevron-top"></span>
        top
    </a>
</div>
<hr>
<div>&nbsp;</div>

    <h4>生成静态页面过滤器</h4>
    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>返回</th>
                    <th>回传参数</th>
                    <th>说明</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>filter_gen_article_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td>生成文章时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_call_cate</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td>生成调用栏目列表时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_call_spec</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td>生成调用专题列表时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_call_link</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=common#link" target="_blank">友情链接</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=common#link" target="_blank">友情链接</a></td>
                    <td>生成调用友情链接列表时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_call_tag</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=tag" target="_blank">TAG 显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=tag" target="_blank">TAG 显示</a></td>
                    <td>生成调用 TAG 列表、排行时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_call_article</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=article" target="_blank">文章显示</a></td>
                    <td>生成调用文章列表、排行时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_cate_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=cate" target="_blank">栏目显示</a></td>
                    <td>生成栏目时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_spec_show</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td>生成专题时触发（仅在纯静态模式下有效）</td>
                </tr>
                <tr>
                    <td>filter_gen_spec_list</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=tpl&a=spec#show" target="_blank">专题显示</a></td>
                    <td>生成专题列表时触发（仅在纯静态模式下有效）</td>
                </tr>
            </tbody>
        </table>
    </div>


<div>&nbsp;</div>
<div class="text-right">
    <a href="#top">
        <span class="oi oi-chevron-top"></span>
        top
    </a>
</div>
<hr>
<div>&nbsp;</div>

    <h4>API 接口过滤器</h4>
    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>返回</th>
                    <th>回传参数</th>
                    <th>说明</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>filter_api_article_read</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td>显示文章时触发</td>
                </tr>
                <tr>
                    <td>filter_api_article_list</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td>显示文章列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_call_cate</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td>调用栏目列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_call_spec</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td>调用专题列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_call_link</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=call#link" target="_blank">友情链接</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=call#link" target="_blank">友情链接</a></td>
                    <td>调用友情链接列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_call_tag</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=tag#read" target="_blank">TAG 显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=tag#read" target="_blank">TAG 显示</a></td>
                    <td>调用 TAG 列表、排行时触发</td>
                </tr>
                <tr>
                    <td>filter_api_call_article</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=article#read" target="_blank">文章显示</a></td>
                    <td>调用文章列表、排行时触发</td>
                </tr>
                <tr>
                    <td>filter_api_cate_read</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td>显示栏目时触发</td>
                </tr>
                <tr>
                    <td>filter_api_cate_list</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=cate#read" target="_blank">栏目显示</a></td>
                    <td>显示栏目列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_spec_read</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td>显示专题时触发</td>
                </tr>
                <tr>
                    <td>filter_api_spec_list</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=spec#read" target="_blank">专题显示</a></td>
                    <td>显示专题列表时触发</td>
                </tr>
                <tr>
                    <td>filter_api_tag_read</td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=tag#read" target="_blank">TAG 显示</a></td>
                    <td><a href="{$BG_URL_HELP}index.php?m=api&a=tag#read" target="_blank">TAG 显示</a></td>
                    <td>显示 TAG 时触发</td>
                </tr>
            </tbody>
        </table>
    </div>
